package com.product.system.domain.response;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "bus_log")
public class SysRoleLog {
    /**
     * Log_ID
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     *角色昵称
     */
    @TableField(value = "role_name")
    private String roleName;


    /**
     * 显示顺序
     */
    @TableField(value = "role_sort")
    private Integer roleSort;

    /**
     * 操作时间
     */
    @TableField(value = "creat_time")
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 权限字符
     */
    @TableField(value = "role_key")
    private String roleKey;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;



}



